# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ffuf-scripts
pkgver=1.2192bf7
pkgrel=1
pkgdesc='Scripts and snippets for ffuf payloads.'
arch=('any')
groups=('blackarch' 'blackarch-misc')
url='https://github.com/ffuf/ffuf-scripts'
license=('custom:unknown')
depends=()
makedepends=('git')
source=("git+https://github.com/ffuf/$pkgname.git")
sha512sums=('SKIP')

prepare() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 -t "$pkgdir/usr/share/$pkgname/" *.sh
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md
}

